package com.jiuli.liping.service.impl;

import com.jiuli.liping.dao.SupplierDao;
import com.jiuli.liping.vo.Supplier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jiuli.liping.service.SupplierService;

import java.util.List;

/**
 * Author zyl
 * Date  2020-03-25
 */
@Service
public class SupplierServiceImpl implements SupplierService {
    @Autowired
    private SupplierDao supplierDao;
    
    @Override
    public Supplier get(String id){
        return supplierDao.get(id);
    }
    
    @Override
    public List<Supplier> findList(Supplier supplier) {
        return supplierDao.findList(supplier);
    }
    
    @Override
    public List<Supplier> findAllList() {
        return supplierDao.findAllList();
    }
    
    @Override
    public int insert(Supplier supplier) {
        return supplierDao.insert(supplier);
    }
    
    @Override
    public int insertBatch(List<Supplier> suppliers){
        return supplierDao.insertBatch(suppliers);
    }
    
    @Override
    public int update(Supplier supplier) {
        return supplierDao.update(supplier);
    }
    
    @Override
    public int delete(Supplier supplier) {
        return supplierDao.delete(supplier);
    }

}
